package com.iplay.entity.cashback;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "cashback")
public class CashbackStrategyDO {
	@Id
	private int orderId;
	private double percentageForCustomer;
	private double percentageForRecommender;
	private double percentageForManager;
	
	public CashbackStrategyDO( int orderId, double percentageForCustomer, double percentageForRecommender,
			double percentageForManager) {
		super();
		this.orderId = orderId;
		this.percentageForCustomer = percentageForCustomer;
		this.percentageForRecommender = percentageForRecommender;
		this.percentageForManager = percentageForManager;
	}
	
	public CashbackStrategyDO(){}
	
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public double getPercentageForCustomer() {
		return percentageForCustomer;
	}
	public void setPercentageForCustomer(double percentageForCustomer) {
		this.percentageForCustomer = percentageForCustomer;
	}
	public double getPercentageForRecommender() {
		return percentageForRecommender;
	}
	public void setPercentageForRecommender(double percentageForRecommender) {
		this.percentageForRecommender = percentageForRecommender;
	}
	public double getPercentageForManager() {
		return percentageForManager;
	}
	public void setPercentageForManager(double percentageForManager) {
		this.percentageForManager = percentageForManager;
	}
}
